#include <iostream>

using namespace std;

class Fish
{
protected:
    bool FreshWaterFish;

public:
    Fish(bool IsFreshWater) : FreshWaterFish (IsFreshWater){}

    void Swim()
    {
        if (FreshWaterFish)
            cout << "swims in lake" << endl;
        else
            cout << "swims in ocean" << endl;
    }
};

class Tuna : public Fish
{
public:
    Tuna() : Fish(false){}
};

class Carp : public Fish
{
public:
    Carp() : Fish(true){}
};

int main()
{
    Carp myLunch;
    Tuna myDinner;

    cout << "Getting my fish to swim:" << endl;

    cout << "My lunch ";
    myLunch.Swim();

    cout << "My dinner ";
    myDinner.Swim();

    return 0;
}
